import http from "@/api/http.js"
//轮播图
export const bannerList = () => http({
	url: "index"
})
//优惠价
export const youhuilist = () => http({
	url: "coupon"
})
//拼团
export const pituanList = () => http({
	url: "group"
})
//最近列表
export const zuixinList = (data) => http({
	url: "flashsale",
	data: "page"
})
//登录
export const addlist = (data) => http({
	url: "login",
	method: "POST",
	data
})
//注册
export const zcList = (data) => http({
	url: "reg",
	method: "POST",
	data
})
//退出
export const tcList=(data)=>http({
	url:"logout",
	method:"POST",
})
//查看更多列表
export const listGet=(data)=>http({
	url:"course/list",
	data,
})
//学习列表
export const getListt=(data)=>http({
	url:"testpaper/list",
	data
})

export const kaoshilist=(data)=>http({
	url:"testpaper/read",
	data
})

//验证码
export const listPhone=(data)=>http({
	url:"get_captcha",
	data,
	method:"POST"
})
//绑定手机号
export const addlistt=(data)=>http({
	url:"bind_mobile",
	data,
	method:"POST"
})
//图书
export const booklist=(data)=>http({
	url:"book/list",
	data
})